class GameDefineProtocol():
    class GameCommand():
        COMMAND_LOGIN = "login" #login user password
        COMMAND_ECHO = "echo" #echo
        COMMAND_CREATE_ROOM = "create" #create money password
        COMMAND_GET_ROOM_LIST = "roomlist"
        COMMAND_QUIT = "quit" #quit        
        COMMAND_JOIN = "join" #join host password
        COMMAND_PART = "part" #part
        COMMAND_START = "start" #start
        COMMAND_READY = "ready" #ready
        COMMAND_PLAY = "play" #play
        COMMAND_SHOW_PLAYERS = "showplayers" #notwork
        COMMAND_FINISH = "finish" #finish
        COMMAND_DEBUG = "debug"
        
    class GameNotify():
        NOTIFY_LOGIN_OK = "login_ok"
        NOTIFY_CREATE_OK = "create_ok"
        NOTIFY_JOIN_OK = "join_ok"
        NOTIFY_PART_OK = "part_ok"
        NOTIFY_USER_JOIN = "userjoin"
        NOTIFY_USER_PART = "userpart"
        NOTIFY_START_GAME = "start_game"
#        NOTIFY_READY_GAME = "ready_game"
        NOTIFY_FINISH_GAME = "finish_game"
        NOTIFY_USER_CARDS = "usercards"
        NOTIFY_USER_PLAY = "userplay"
        NOTIFY_USER_TURN = "userturn"
        NOTIFY_USER_LIST = "userlist"
        NOTIFY_USER_HOST = "userhost"
        NOTIFY_USER_FINISH  = "userfinish"
        NOTIFY_USER_READY = "userready"
        NOTIFY_USER_WIN = "userwin"
        NOTIFY_USER_SCORE = "userscore"
        NOTIFY_USER_MONEY = "usermoney"
        NOTIFY_ROOM_LIST = "roomlist"
        NOTIFY_GAME_WAITING = "game_waiting"
        NOTIFY_GAME_PLAYING = "game_playing"
        
    class GameError():
        NOTIFY_LOGIN_ERROR = "login_error"
        NOTIFY_CREATE_ERROR = "create_error"
        NOTIFY_JOIN_ERROR = "join_error"
        NOTIFY_PART_ERROR = "part_error"
        NOTIFY_START_GAME_ERROR = "start_game_error"
        NOTIFY_READY_GAME_ERROR = "ready_game_error"
        NOTIFY_USER_PLAY_ERROR = "userplay_error"
        NOTIFY_USER_FINISH_ERROR = "userfinish_error"    